package me.keiwu.admin.service;


import me.keiwu.admin.domain.user.UserLabel;
import me.keiwu.admin.vo.UserLabelSearch;
import me.keiwu.pub.data.Response;
import me.keiwu.pub.data.service.UserInfoBean;
import org.springframework.data.domain.Page;


/**
 * Created by kei on 31/10/2017.
 */
public interface UserLabelService {

    //用户添加标签
    Long add(UserLabel userLabel);

    //用户删除标签
    boolean deleteByUserIdLabelId(Long userId, Long labelId);

    //查询标签列表
    Page<UserLabel> findLabel(UserLabelSearch userLabelSearch);

    Page<UserLabel> findUser(UserLabelSearch userLabelSearch);



    Page<UserInfoBean> findUserWithLabelId(Long labelId, int page, int size);
    Response findUserWithoutLabelId(Long labelId, String nickName, int page, int size);




    int deleteByLabelId(Long id);

    Iterable<UserLabel> findAllUserLabel(Long userId);

}
